import com.mars.Bean.User;
import com.mars.mapper.UserMapperImpl;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Mytest {
    public static void main(String[] args) {
        ApplicationContext ac = new ClassPathXmlApplicationContext("/applicationContext.xml");
        UserMapperImpl userMapper = ac.getBean("userMapperImpl", UserMapperImpl.class);
        User user = userMapper.selectUsers(4);
        System.out.println(user);

    }
}
